package com.atues.thread.demo01;

public class TestThread1 extends Thread {
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(" i=" + i);
        }
    }

    public static void main(String[] args) {
        TestThread1 thread = new TestThread1();
        thread.start(); // 启动线程
        for (int i = 0; i < 10; i++) {
            System.out.println("main i=" + i);
        }
    }
}
